home *** CD-ROM | disk | FTP | other *** search
/ The Complete Utilities To…ka 501 Killer Utilities! / 501 Killer Utilities! (Macworld July 1995).cdr / Programming / OutOfPhase1.1 Source / OutOfPhase Folder / InteractionWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-28  |  2.3 KB  |  66 lines  |  [TEXT/KAHL]

  1. /* InteractionWindow.h */
  2.  
  3. #ifndef Included_InteractionWindow_h
  4. #define Included_InteractionWindow_h
  5.  
  6. /* InteractionWindow module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Screen */
  12. /* EventLoop */
  13. /* Menus */
  14. /* MainWindowStuff */
  15. /* WindowDispatcher */
  16. /* TextEdit */
  17. /* Memory */
  18. /* GlobalWindowMenuList */
  19. /* Main */
  20. /* GrowIcon */
  21. /* DataMunging */
  22. /* FindDialog */
  23.  
  24. #include "Screen.h"
  25. #include "EventLoop.h"
  26. #include "Menus.h"
  27.  
  28. struct InteractionWindowRec;
  29. typedef struct InteractionWindowRec InteractionWindowRec;
  30.  
  31. /* forward declarations */
  32. struct MainWindowRec;
  33.  
  34.  
  35. /* create a new interaction window.  the caller is responsible for registering the */
  36. /* interaction window with the main window. */
  37. InteractionWindowRec*    NewInteractionWindow(struct MainWindowRec* MainWindow);
  38.  
  39. /* dispose of a interaction window.  the interaction window notifies the main window */
  40. /* that owns it. */
  41. void                                    DisposeInteractionWindow(InteractionWindowRec* Window);
  42.  
  43. /* event handling routines for the interaction window */
  44. void                                    InteractionWindowDoIdle(InteractionWindowRec* Window,
  45.                                                 MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc,
  46.                                                 ModifierFlags Modifiers);
  47. void                                    InteractionWindowBecomeActive(InteractionWindowRec* Window);
  48. void                                    InteractionWindowBecomeInactive(InteractionWindowRec* Window);
  49. void                                    InteractionWindowJustResized(InteractionWindowRec* Window);
  50. void                                    InteractionWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
  51.                                                 ModifierFlags Modifiers, InteractionWindowRec* Window);
  52. void                                    InteractionWindowDoKeyDown(unsigned char KeyCode,
  53.                                                 ModifierFlags Modifiers, InteractionWindowRec* Window);
  54. void                                    InteractionWindowClose(InteractionWindowRec* Window);
  55. void                                    InteractionWindowUpdator(InteractionWindowRec* Window);
  56. void                                    InteractionWindowMenuSetup(InteractionWindowRec* Window);
  57. void                                    InteractionWindowDoMenuCommand(InteractionWindowRec* Window,
  58.                                                 MenuItemType* MenuItem);
  59.  
  60. /* add a string to the interaction window.  linefeeds correspond to system linefeed */
  61. /* strings.  the string is a non-null-terminated block of data with explicit size. */
  62. MyBoolean                            InteractionWindowAppendString(InteractionWindowRec* Window,
  63.                                                 char* Data, long Length);
  64.  
  65. #endif
  66.